home *** CD-ROM | disk | FTP | other *** search
/ Languguage OS 2 / Languguage OS II Version 10-94 (Knowledge Media)(1994).ISO / language / embedded / mcu332 / 332equ.arc / 332SIM.EQU < prev    next >
Text File  |  1990-03-12  |  26KB  |  446 lines

  1.  
  2. ****************************************************************************
  3. * $RCSfile: 332sim.equ $
  4. * $Revision: 1.1 $
  5. * $Date: 90/03/12 13:45:42 $
  6. *
  7. *       -------------------------------------------------------------
  8. *       Module Name:        332SIM - MC68332 SIM Registers
  9. *       -------------------------------------------------------------
  10. *
  11. *       Description:
  12. *          1. This file contains EQUates for all the System Integration
  13. *             Module (SIM) registers and bits for the MC68332.  Consult
  14. *             the "MC68332 System Integration Module User's Manual", part
  15. *             number SIM32UM/AD, for more details.
  16. *          2. A 128-byte address space is reserved for the SIM, though not
  17. *             all are used.
  18. *          3. The ABSOLUTE address area where the register array block
  19. *             appears in memory is specified by the value of REG$, which
  20. *             should be defined in the user's system definitions.  The
  21. *             value of REG$ is $YFF000, where Y = M111 and M reflects the
  22. *             modmap bit (MM) in the module configuration register (MCR).
  23. *
  24. *                   REG$ value    Comments
  25. *                   ----------    ---------------------------------
  26. *                   $007FF000     MCR MM bit = 0
  27. *                   $00FFF000     MCR MM bit = 1   (reset default)
  28. *                   $FFFFF000     MCR MM bit = 1   (reset default)
  29. *                                   Forces short addressing (unused 
  30. *                                   upper address lines are ignored)
  31. *          4. The following pages summarize these registers and their
  32. *             associated addresses.
  33. *
  34. *       Notes:
  35. *          1. Motorola reserves the right to make changes to this file.
  36. *             Although this file has been carefully reviewed and is
  37. *             believed to be reliable, Motorola does not assume any
  38. *             liability arising out of its use.  This code may be freely
  39. *             used and/or modified at no cost or obligation to the user.
  40. *          2. All descriptions are WORD values unless stated otherwise.
  41. *          3. The DEF macro along with the BIT$CODE symbol controls the
  42. *             actual bit definitions.  See the DEF macro in the DEF.MAC
  43. *             file for details.
  44. *          4. This file was made for use with the Motorola Development
  45. *             Systems M68000 Family Structured Assembler for MS-DOS,
  46. *             known as M68MASM.
  47. *          5. To use this file, either use an INCLUDE statement or just
  48. *             merge this file into your source code file.  Consult your
  49. *             assembler's user's manual for the details specific to your
  50. *             situation.  Reference the code segment example below for
  51. *             usage ideas (shown in M68MASM for MS-DOS syntax).
  52. *
  53. *             REG$     EQU      $FFFFF000         Register base address
  54. *             * NOTE: A31-24 unused in MC68332, so we set them all =1
  55. *             *       in order to use absolute short addressing mode!
  56. *                      NOLIST
  57. *                      INCLUDE  "DEF.MAC"
  58. *                      INCLUDE  "332SIM.EQU"
  59. *                      LIST
  60. *             START    CLR      SIM$+SIMTR         Absolute addressing!
  61. *                      LEA      SIM$,A6            .      OR
  62. *                      CLR      (SIMTR,A6)        Indexed addressing!
  63. *             *    Bit number usage w/indexing!
  64. *                      BCLR.B   #MM,(MCR+1,A6)
  65. *                      OR.W     (1<<.FRZBM)+(1<<.FRZSW),(MCR,A6)
  66. *             *    Bit value usage w/indexing!
  67. *                      AND.B    #(-_MM-1)&$FF,(MCR+1,A6)
  68. *                      OR.W     _FRZBM+_FRZSW,(MCR,A6)
  69. *             *    Bit field usage w/indexing!
  70. *                      MOVE.B   #(5*PIRQL_)+(66*PIV_),(PICR,A6)
  71. *             *    Bit field mask usage w/indexing!
  72. *                      MOVE.W   (PICR,A6),D0
  73. *                      MOVE.W   D0,D1
  74. *                      AND.W    #PIRQL_MSK,D0     Isolate PIRQL field
  75. *                      MOVE.L   #.PIRQL,D2
  76. *                      LSR.W    D2,d0             and right justify it!
  77. *                      AND.W    #PIRQL_NMSK,D1    Clear PIRQL field.
  78. *
  79. *             For bit fields, a value (0-N) will be placed inside.  As
  80. *             can be seen in the last line above, this is accomplished
  81. *             by multiplying the bit field label by the desired value
  82. *             for the field.  This line initializes the PICR register
  83. *             which has two bit fields, PIRQL_ and PIV_.  These fields
  84. *             are initialized to interrupt level 5 and vector 66
  85. *             respectively, by this line (places a value of $0542 into
  86. *             the PICR register).
  87. *          6. Be careful when using any of the BIT instructions (BCHG,
  88. *             BCLR, BSET, BTST), as they will only operate on a BYTE of
  89. *             memory, not a WORD.  Thus to access a bit in the least
  90. *             significant half of a word sized register (B0-B7), "+1"
  91. *             must be added to the operand address.  See the code
  92. *             segment example in item 5 above.
  93. *          7. Because the equate files can generate many listing pages,
  94. *             the user may wish to disable the listing via NOLIST and
  95. *             LIST directives as seen in the above example code.
  96. *          8. The latest version of this file is maintained on the
  97. *             Motorola FREEWARE Bulletin Board, 512/891-FREE (512/891-
  98. *             3733).  It operates continuously (except for maintenance)
  99. *             at 1200-2400 baud, 8-bits, no parity.  Download the
  100. *             archive file 332EQU.ARC to get all the files.
  101. *
  102. ****************************************************************************
  103.  
  104.  
  105. *********************************************************************
  106. * Define Module Base Address
  107. *********************************************************************
  108. SIM$    EQU     REG$+$A00   SIM base address
  109.  
  110. *********************************************************************
  111. * Define Registers and Bits
  112. *********************************************************************
  113. MCR     EQU     $000        Module Configuration Register
  114.         DEF     EXOFF,B15   . external clock off
  115.         DEF     FRZSW,B14   . freeze software enable
  116.         DEF     FRZBM,B13   . freeze bus monitor enable
  117.         DEF     SLVEN,B11   . slave mode enable
  118.         DEF     SHEN,B8,2   . show cycle enable              (2 bits)
  119.         DEF     SUPV,B7     . supervisor/unrestricted data space
  120.         DEF     MM,B6       . module mapping
  121. * NOTE:  MM is a WRITE-ONCE field!
  122.         DEF     IARB,B0,4   . interrupt arbitration          (4 bits)
  123. *-------------------------------------------------------------------*
  124. SIMTR   EQU     $002        System Integration Module Test Register
  125.         DEF     MASK,B10,6  . mask number (read only)        (6 bits)
  126.         DEF     SOSEL,B6,2  . scan out select                (2 bits)
  127. * NOTE:  SOSEL bit field is different bit position from TPU's TTCR!
  128.         DEF     SHIRQ,B4,2  . show interrupt request         (2 bits)
  129.         DEF     FBIT,B2,2   . force bit                      (2 bits)
  130.         DEF     BWC,B0,2    . bandwidth control              (2 bits)
  131. *-------------------------------------------------------------------*
  132. SYNCR   EQU     $004        Clock Synthesizer Control Register
  133. * NOTE:  M68MASM doesn't allow labels like ".W" and ".X"!
  134.         DEF     WBIT,B15    . W frequency control bit
  135.         DEF     XBIT,B14    . X frequency control bit
  136.         DEF     Y,B8,6      . Y frequency control bits      (6 bits)
  137.         DEF     EDIV,B7     . E-clock divide rate
  138.         DEF     SLIMP,B4    . limp mode
  139.         DEF     SLOCK,B3    . synthesizer lock
  140.         DEF     RSTEN,B2    . reset enable
  141.         DEF     STSIM,B1    . stop mode system integration clock
  142.         DEF     STEXT,B0    . stop mode external clock
  143. *-------------------------------------------------------------------*
  144. *UNUSED EQU     $006        Unused position                    (BYTE)
  145. *-------------------------------------------------------------------*
  146. RSR     EQU     $007        Reset Status Register              (BYTE)
  147. * NOTE:  RSR is a READ-ONLY register!
  148.         DEF     EXT,B7      . external reset
  149.         DEF     POW,B6      . powerup reset
  150.         DEF     SW,B5       . software watchdog reset
  151.         DEF     HLT,B4      . halt monitor reset
  152.         DEF     LOC,B2      . loss of clock reset
  153.         DEF     SYS,B1      . system reset
  154.         DEF     TST,B0      . test submodule reset
  155. *-------------------------------------------------------------------*
  156. SIMTRE  EQU     $008        System Integration Module Test E Register
  157. * NOTE:  SIMTRE is a WRITE-ONLY register reserved for Factory Testing!
  158. *-------------------------------------------------------------------*
  159. *UNUSED EQU     $00A        Unused position
  160. *-------------------------------------------------------------------*
  161. *UNUSED EQU     $00C        Unused position
  162. *-------------------------------------------------------------------*
  163. *UNUSED EQU     $00E        Unused position
  164. *-------------------------------------------------------------------*
  165. *UNUSED EQU     $010        Unused position                    (BYTE)
  166. *-------------------------------------------------------------------*
  167. PORTE   EQU     $011        Port E Data Register               (BYTE)
  168.         DEF     PE7,B7      . port E data bit 7
  169.         DEF     PE6,B6      . port E data bit 6
  170.         DEF     PE5,B5      . port E data bit 5
  171.         DEF     PE4,B4      . port E data bit 4
  172.         DEF     PE3,B3      . port E data bit 3
  173.         DEF     PE2,B2      . port E data bit 2
  174.         DEF     PE1,B1      . port E data bit 1
  175.         DEF     PE0,B0      . port E data bit 0
  176. *-------------------------------------------------------------------*
  177. *UNUSED EQU     $012        Unused position                    (BYTE)
  178. *-------------------------------------------------------------------*
  179. PORTE1  EQU     $013        Port E Data Register 1             (BYTE)
  180. *-------------------------------------------------------------------*
  181. *UNUSED EQU     $014        Unused position                    (BYTE)
  182. *-------------------------------------------------------------------*
  183. DDRE    EQU     $015        Port E Data Direction Register     (BYTE)
  184.         DEF     DDE7,B7     . port E data direction bit 7
  185.         DEF     DDE6,B6     . port E data direction bit 6
  186.         DEF     DDE5,B5     . port E data direction bit 5
  187.         DEF     DDE4,B4     . port E data direction bit 4
  188.         DEF     DDE3,B3     . port E data direction bit 3
  189.         DEF     DDE2,B2     . port E data direction bit 2
  190.         DEF     DDE1,B1     . port E data direction bit 1
  191.         DEF     DDE0,B0     . port E data direction bit 0
  192. *-------------------------------------------------------------------*
  193. *UNUSED EQU     $016        Unused position                    (BYTE)
  194. *-------------------------------------------------------------------*
  195. PEPAR   EQU     $017        Port E Pin Assignment Register     (BYTE)
  196.         DEF     PEPA7,B7    . port E pin assignment bit 7
  197.         DEF     PEPA6,B6    . port E pin assignment bit 6
  198.         DEF     PEPA5,B5    . port E pin assignment bit 5
  199.         DEF     PEPA4,B4    . port E pin assignment bit 4
  200.         DEF     PEPA3,B3    . port E pin assignment bit 3
  201.         DEF     PEPA2,B2    . port E pin assignment bit 2
  202.         DEF     PEPA1,B1    . port E pin assignment bit 1
  203.         DEF     PEPA0,B0    . port E pin assignment bit 0
  204. *-------------------------------------------------------------------*
  205. *UNUSED EQU     $018        Unused position                    (BYTE)
  206. *-------------------------------------------------------------------*
  207. PORTF   EQU     $019        Port F Data Register               (BYTE)
  208.         DEF     PF7,B7      . port F data bit 7
  209.         DEF     PF6,B6      . port F data bit 6
  210.         DEF     PF5,B5      . port F data bit 5
  211.         DEF     PF4,B4      . port F data bit 4
  212.         DEF     PF3,B3      . port F data bit 3
  213.         DEF     PF2,B2      . port F data bit 2
  214.         DEF     PF1,B1      . port F data bit 1
  215.         DEF     PF0,B0      . port F data bit 0
  216. *-------------------------------------------------------------------*
  217. *UNUSED EQU     $01A        Unused position                    (BYTE)
  218. *-------------------------------------------------------------------*
  219. PORTF1  EQU     $01B        Port F Data Register 1             (BYTE)
  220. *-------------------------------------------------------------------*
  221. *UNUSED EQU     $01C        Unused position                    (BYTE)
  222. *-------------------------------------------------------------------*
  223. DDRF    EQU     $01D        Port F Data Direction Register     (BYTE)
  224.         DEF     DDF7,B7     . port F data direction bit 7
  225.         DEF     DDF6,B6     . port F data direction bit 6
  226.         DEF     DDF5,B5     . port F data direction bit 5
  227.         DEF     DDF4,B4     . port F data direction bit 4
  228.         DEF     DDF3,B3     . port F data direction bit 3
  229.         DEF     DDF2,B2     . port F data direction bit 2
  230.         DEF     DDF1,B1     . port F data direction bit 1
  231.         DEF     DDF0,B0     . port F data direction bit 0
  232. *-------------------------------------------------------------------*
  233. *UNUSED EQU     $01E        Unused position                    (BYTE)
  234. *-------------------------------------------------------------------*
  235. PFPAR   EQU     $01F        Port F Pin Assignment Register     (BYTE)
  236.         DEF     PFPA7,B7    . port F pin assignment bit 7
  237.         DEF     PFPA6,B6    . port F pin assignment bit 6
  238.         DEF     PFPA5,B5    . port F pin assignment bit 5
  239.         DEF     PFPA4,B4    . port F pin assignment bit 4
  240.         DEF     PFPA3,B3    . port F pin assignment bit 3
  241.         DEF     PFPA2,B2    . port F pin assignment bit 2
  242.         DEF     PFPA1,B1    . port F pin assignment bit 1
  243.         DEF     PFPA0,B0    . port F pin assignment bit 0
  244. *-------------------------------------------------------------------*
  245. *UNUSED EQU     $020        Unused position                    (BYTE)
  246. *-------------------------------------------------------------------*
  247. SYPCR   EQU     $021        System Protection Register         (BYTE)
  248. * NOTE:  SYPCR is a WRITE-ONCE register!
  249.         DEF     SWE,B7      . software watchdog enable
  250.         DEF     SWP,B6      . software watchdog prescale
  251.         DEF     SWT,B4,2,MSK8 . software watchdog timing     (2 bits)
  252.         DEF     HME,B3      . halt monitor enable
  253.         DEF     BME,B2      . bus monitor external enable
  254.         DEF     BMT,B0,2,MSK8 . bus monitor timing           (2 bits)
  255. *-------------------------------------------------------------------*
  256. PICR    EQU     $022        Periodic Interrupt Control Register
  257.         DEF     PIRQL,B8,3  . periodic int. request level    (3 bits)
  258.         DEF     PIV,B0,8    . periodic interrupt vector      (8 bits)
  259. *-------------------------------------------------------------------*
  260. PITR    EQU     $024        Periodic Interrupt Timing Register
  261.         DEF     PTP,B8      . periodic timer prescaler control
  262.         DEF     PITM,B0,8   . periodic timer modulus         (8 bits)
  263. *-------------------------------------------------------------------*
  264. *UNUSED EQU     $026        Unused position                    (BYTE)
  265. *-------------------------------------------------------------------*
  266. SWSR    EQU     $027        Software Service Register          (BYTE)
  267. * NOTE:  SWSR register always reads as zero (0)!
  268.         DEF     SWSR,B0,8,MSK8 . software watchdog count     (8 bits)
  269. *-------------------------------------------------------------------*
  270. *UNUSED EQU     $028        Unused position
  271. *-------------------------------------------------------------------*
  272. TSTMSRA EQU     $030        Test Module Master Shift Register A
  273. *-------------------------------------------------------------------*
  274. TSTMSRB EQU     $032        Test Module Master Shift Register B
  275. *-------------------------------------------------------------------*
  276. TSTSC   EQU     $034        Test Module Shift Count
  277. *-------------------------------------------------------------------*
  278. TSTRC   EQU     $036        Test Module Repetition Counter
  279. *-------------------------------------------------------------------*
  280. CREG    EQU     $038        Test Module Control Register
  281.         DEF     BUSY,B15    . busy status bit
  282. * NOTE:  BUSY is not writable; read only!
  283.         DEF     TMARM,B14   . test mode armed status bit
  284.         DEF     COMP,B13    . compare status bit
  285.         DEF     IMBTST,B12  . intermodule bus test
  286.         DEF     CPUTR,B11   . CPU test register
  287.         DEF     QBIT,B10    . quotient bit
  288.         DEF     MUXEL,B9    . multiplexer select bit
  289.         DEF     ACUT,B4     . activate circuit under test
  290. * NOTE:  ACUT always reads as zero (0)!
  291.         DEF     SCONT,B3    . start continuous operation
  292.         DEF     SSHOP,B2    . start shifting operation
  293.         DEF     SATO,B1     . start automatic test operation
  294.         DEF     ETM,B0      . enter test mode
  295. * NOTE:  ETM is a WRITE-ONCE bit!
  296. *-------------------------------------------------------------------*
  297. DREG    EQU     $03A        Test Module Distributed Register
  298.         DEF     WAIT,B8,3   . wait counter preset            (3 bits)
  299.         DEF     MSRA18,B7   . master shift reg. A bit 18
  300.         DEF     MSRA17,B6   . master shift reg. A bit 17
  301.         DEF     MSRA16,B5   . master shift reg. A bit 16
  302.         DEF     MSRA,B5,3   . master shift reg. A bits 16-18 (3 bits)
  303.         DEF     MSRAC,B4    . master shift reg. A configuration
  304.         DEF     MSRB18,B3   . master shift reg. B bit 18
  305.         DEF     MSRB17,B2   . master shift reg. B bit 17
  306.         DEF     MSRB16,B1   . master shift reg. B bit 16
  307.         DEF     MSRB,B1,3   . master shift reg. B bits 16-18 (3 bits)
  308.         DEF     MSRBC,B0    . master shift reg. B configuration
  309. *-- Wait Counter Values --*
  310. WAIT$2  EQU     0            Delay  2 system clock cycles
  311. WAIT$4  EQU     1            Delay  4 system clock cycles
  312. WAIT$6  EQU     2            Delay  6 system clock cycles
  313. WAIT$8  EQU     3            Delay  8 system clock cycles
  314. WAIT$10 EQU     4            Delay 10 system clock cycles
  315. WAIT$12 EQU     5            Delay 12 system clock cycles
  316. WAIT$14 EQU     6            Delay 14 system clock cycles
  317. WAIT$16 EQU     7            Delay 16 system clock cycles
  318. *-------------------------------------------------------------------*
  319. *UNUSED EQU     $03C        Unused position
  320. *-------------------------------------------------------------------*
  321. *UNUSED EQU     $03E        Unused position
  322. *-------------------------------------------------------------------*
  323. *UNUSED EQU     $040        Unused position                    (BYTE)
  324. *-------------------------------------------------------------------*
  325. PORTC   EQU     $041        Port C Data Register               (BYTE)
  326.         DEF     PC7,B7      . port C data bit 7
  327.         DEF     PC6,B6      . port C data bit 6
  328.         DEF     PC5,B5      . port C data bit 5
  329.         DEF     PC4,B4      . port C data bit 4
  330.         DEF     PC3,B3      . port C data bit 3
  331.         DEF     PC2,B2      . port C data bit 2
  332.         DEF     PC1,B1      . port C data bit 1
  333.         DEF     PC0,B0      . port C data bit 0
  334. *-------------------------------------------------------------------*
  335. *UNUSED EQU     $042        Unused position
  336. *-------------------------------------------------------------------*
  337. CSPAR0  EQU     $044        Chip Select Pin Assignment Register 0
  338. *-------------------------------------------------------------------*
  339. CSPAR1  EQU     $046        Chip Select Pin Assignment Register 1
  340. *-------------------------------------------------------------------*
  341. CSBARBT EQU     $048        Chip Select Base Address Register Boot
  342. * NOTE:  For all CSBARxx registers,
  343. *              BITS 15-3= base address field (A23-A11)
  344. *              BITS 2-0 = block size   field
  345. *        See "Chip Select Equates for CSORxx, CSBARxx:" below.
  346. *-------------------------------------------------------------------*
  347. CSORBT  EQU     $04A        Chip Select Option Register Boot
  348. * NOTE:  For all CSORxx registers,
  349. *              BIT  15   = aysnc/sync mode              (MODE)
  350. *              BITS 14-13= upper/lower byte option      (BYTE)
  351. *              BITS 12-11= read/write                   (R/W)
  352. *              BIT  10   = address/data strobe          (STRB)
  353. *              BITS 9-6  = data strobe acknowledge      (DSACK)
  354. *              BITS 5-4  = address space                (SPACE)
  355. *              BITS 3-1  = interrupt priority level     (IPL)
  356. *              BIT  0    = autovector enable            (AVEC)
  357. *        See "Chip Select Equates for CSORxx, CSBARxx:" below.
  358. *-------------------------------------------------------------------*
  359. CSBAR0  EQU     $04C        Chip Select Base Address Register 0
  360. *-------------------------------------------------------------------*
  361. CSOR0   EQU     $04E        Chip Select Option Register 0
  362. *-------------------------------------------------------------------*
  363. CSBAR1  EQU     $050        Chip Select Base Address Register 1
  364. *-------------------------------------------------------------------*
  365. CSOR1   EQU     $052        Chip Select Option Register 1
  366. *-------------------------------------------------------------------*
  367. CSBAR2  EQU     $054        Chip Select Base Address Register 2
  368. *-------------------------------------------------------------------*
  369. CSOR2   EQU     $056        Chip Select Option Register 2
  370. *-------------------------------------------------------------------*
  371. CSBAR3  EQU     $058        Chip Select Base Address Register 3
  372. *-------------------------------------------------------------------*
  373. CSOR3   EQU     $05A        Chip Select Option Register 3
  374. *-------------------------------------------------------------------*
  375. CSBAR4  EQU     $05C        Chip Select Base Address Register 4
  376. *-------------------------------------------------------------------*
  377. CSOR4   EQU     $05E        Chip Select Option Register 4
  378. *-------------------------------------------------------------------*
  379. CSBAR5  EQU     $060        Chip Select Base Address Register 5
  380. *-------------------------------------------------------------------*
  381. CSOR5   EQU     $062        Chip Select Option Register 5
  382. *-------------------------------------------------------------------*
  383. CSBAR6  EQU     $064        Chip Select Base Address Register 6
  384. *-------------------------------------------------------------------*
  385. CSOR6   EQU     $066        Chip Select Option Register 6
  386. *-------------------------------------------------------------------*
  387. CSBAR7  EQU     $068        Chip Select Base Address Register 7
  388. *-------------------------------------------------------------------*
  389. CSOR7   EQU     $06A        Chip Select Option Register 7
  390. *-------------------------------------------------------------------*
  391. CSBAR8  EQU     $06C        Chip Select Base Address Register 8
  392. *-------------------------------------------------------------------*
  393. CSOR8   EQU     $06E        Chip Select Option Register 8
  394. *-------------------------------------------------------------------*
  395. CSBAR9  EQU     $070        Chip Select Base Address Register 9
  396. *-------------------------------------------------------------------*
  397. CSOR9   EQU     $072        Chip Select Option Register 9
  398. *-------------------------------------------------------------------*
  399. CSBAR10 EQU     $074        Chip Select Base Address Register 10
  400. *-------------------------------------------------------------------*
  401. CSOR10  EQU     $076        Chip Select Option Register 10
  402. *-------------------------------------------------------------------*
  403. *UNUSED EQU     $078        Unused position
  404. *-------------------------------------------------------------------*
  405. *UNUSED EQU     $07A        Unused position
  406. *-------------------------------------------------------------------*
  407. *UNUSED EQU     $07C        Unused position
  408. *-------------------------------------------------------------------*
  409. *UNUSED EQU     $07E        Unused position
  410. *********************************************************************
  411.  
  412. *
  413. * Chip Select Equates for CSORxx, CSBARxx:
  414. *
  415. CSBAR_XX EQU    $0000       Reset (unused) value for CSBARn
  416. CSOR_XX  EQU    $0000       Reset (unused) value for CSORn
  417. *
  418. B2K      EQU    0           2K    block size
  419. B8K      EQU    1           8K    block size
  420. B16K     EQU    2           16K   block size
  421. B64K     EQU    3           64K   block size
  422. B128K    EQU    4           128K  block size
  423. B256K    EQU    5           256K  block size
  424. B512K    EQU    6           512K  block size
  425. B1M      EQU    7           1MB   block size
  426. ASYNC    EQU    $0000       Asynchronous mode
  427. SYNC     EQU    $8000       Synchronous  mode
  428. CS_UPPB  EQU    2*$2000     Upper byte
  429. CS_LOWB  EQU    1*$2000     Lower byte
  430. CS_BOTHB EQU    3*$2000     Both  bytes (upper or lower)
  431. CS_R     EQU    1*$800      Read
  432. CS_W     EQU    2*$800      Write
  433. CS_RW    EQU    3*$800      Read or write
  434. CS_AS    EQU    0*$400      Address Strobe (AS*)
  435. CS_DS    EQU    1*$400      Data    Strobe (DS*)
  436. CS_FAST  EQU    14          Fast     termination DSACK*
  437. CS_EXT   EQU    15          External termination DSACK*
  438. CS_WAIT  EQU    1*$40       Wait cycles for DSACK*
  439. CS_CSP   EQU    0*$10       CPU  space
  440. CS_USP   EQU    1*$10       User space
  441. CS_SSP   EQU    2*$10       Supervisor space
  442. CS_SUSP  EQU    3*$10       Supervisor/User space
  443. CS_LVL   EQU    1*$2        Interrupt priority level
  444. CS_AVEC  EQU    1           Autovector enable
  445. *********************************************************************
  446.